package com.pan.service;

import com.pan.entity.Category;
import com.pan.entity.Result;
import com.pan.vo.CategoryCreateVo;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface CategoryService {
    Result<List<Category>> getAllParent(Long id);

    Result<List<Category>> getAllChild(Long id);

    Result<Boolean> isChild(Long id);

    Result<Category> selectById(Long id);

    Result<List<Category>> selectChildById(Long id);

    Result<List<Category>> selectByLevel1();

    Result insert(String adminTicket, CategoryCreateVo categoryCreateVo);

    Result update(String adminTicket, Long id, Object updateValue, String updateName)  ;
}
